/* 成绩管理专用样式 */

/* 成绩卡片特殊样式 */
.score-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 4px solid #43cea2;
}

.score-card .card-header {
    border-bottom: 2px solid rgba(67, 206, 162, 0.2);
}

.score-display {
    font-size: 2em;
    font-weight: bold;
    color: #185a9d;
    text-align: center;
    margin: 10px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.score-excellent {
    color: #2e7d32;
    background: linear-gradient(45deg, #e8f5e9, #c8e6c9);
}

.score-good {
    color: #1976d2;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
}

.score-pass {
    color: #f57c00;
    background: linear-gradient(45deg, #fff3e0, #ffe0b2);
}

.score-fail {
    color: #d32f2f;
    background: linear-gradient(45deg, #ffebee, #ffcdd2);
}

/* 详情页面样式 */
.detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e1e1e1;
}

.detail-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #185a9d;
    margin: 0;
}

.detail-id {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.detail-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #185a9d;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #43cea2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.info-value {
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e1e1;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-back {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

.btn-edit {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-delete {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* 表单样式增强 */
.score-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #185a9d;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #43cea2;
    outline: none;
    box-shadow: 0 0 10px rgba(67, 206, 162, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* 统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #185a9d;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}